package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class BDPoiTO implements Parcelable {
	// 详细地址
	@SerializedName("addr")
	private String address;
	// 名称
	@SerializedName("name")
	private String name;
	// 经纬度
	@SerializedName("point")
	private BDPoiLocationTO location;

	public BDPoiTO() {
	}

	public BDPoiTO(Parcel source) {
		this.address = source.readString();
		this.name = source.readString();
		this.location = source.readParcelable(BDPoiLocationTO.class.getClassLoader());
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(address);
		dest.writeString(name);
		dest.writeParcelable(location, flags);
	}

	public static final Creator<BDPoiTO> CREATOR = new Creator<BDPoiTO>() {

		@Override
		public BDPoiTO[] newArray(int size) {
			return new BDPoiTO[size];
		}

		@Override
		public BDPoiTO createFromParcel(Parcel source) {
			return new BDPoiTO(source);
		}
	};

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BDPoiLocationTO getLocation() {
		return location;
	}

	public void setLocation(BDPoiLocationTO location) {
		this.location = location;
	}

}
